# 使用用户输入来填充字典
responses = {}

# 设置一个标志，指出调查是否结束
polling_active = True

# key为用户名, value 为回答
while polling_active:
    name = input("What's your name: ")
    responses[name] = input("Which mountain would you like to climb? ")
    # 是否还要继续询问
    repeat = input("Would you like to let another person respond? (yes or no) ")
    if repeat == 'no':
        polling_active = False

# 调查结束，显示结果
print("\n---Poll Results----")
for name,response in responses.items():
    print(name + " would like to climb " + response +'.')